package cn.demomaster.quickui.view.banner;

import com.alibaba.fastjson.JSONObject;

public class FragmentHander {
    JSONObject jsonObject;

    public FragmentHander() {
        this.jsonObject = new JSONObject();
    }

    public int getCurrentItem() {
        return currentItem;
    }

    public boolean getBoolean(String key) {
        if(jsonObject.containsKey(key)){
            return jsonObject.getBoolean(key);
        }
        return false;
    }
   public void putBoolean(String key,Boolean b){
        this.jsonObject.put(key,b);
    }
    int currentItem;
    public void setCurrentItem(int index) {
        this.currentItem = index;
    }

    public void onFragmentResumed(int hashCode) {
    }
}
